package com.clinic.entity.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table(name = SyptomPrescriptionDrug.TABLE)
public class SyptomPrescriptionDrug {

	public static final String TABLE = "syptomprescriptiondrug";
	
	public static final class Columns {
		public static final String SYPTOM_ID = "syptomId";
		public static final String PRESCRIPTION_ID = "prescriptionId";
		public static final String DRUG_ID = "prescriptionId";
	}
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = Columns.SYPTOM_ID)
	private long syptomId;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = Columns.PRESCRIPTION_ID)
	private long prescriptionId;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = Columns.DRUG_ID)
	private long drugId;
}
